Skip to content

fix(auth): support --help / -h flag on auth subcommand (fixes #26)#48

Merged
jpoehnelt merged 2 commits intomainfrom
fix/auth-help-flag
Mar 4, 2026
Merged

fix(auth): support --help / -h flag on auth subcommand (fixes #26)#48
jpoehnelt merged 2 commits intomainfrom
fix/auth-help-flag

Conversation

@jpoehnelt
Copy link
Copy Markdown
Member

Fixes #26

Changes

  • and now print usage text and exit cleanly instead of returning a JSON validation error
  • Empty (no subcommand) also now prints usage and returns Ok rather than an error
  • Refactored the usage string to use concat!() for readability
  • Added tests for --help, -h, and empty-args cases

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 4, 2026

🦋 Changeset detected

Latest commit: d26bc1e

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jpoehnelt jpoehnelt merged commit 666f9a8 into main Mar 4, 2026
22 checks passed
@jpoehnelt jpoehnelt deleted the fix/auth-help-flag branch March 4, 2026 07:59
shigechika pushed a commit to shigechika/gws-cli that referenced this pull request Mar 20, 2026
…orkspace#26) (googleworkspace#48)

* fix(auth): support --help / -h flag on auth subcommand (fixes googleworkspace#26)

* add changeset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant